package com.jpetrinet.lowlevel;

import com.jpetrinet.core.Node;
import com.jpetrinet.core.exceptions.NodesWithSameTypeException;

public class Arc extends com.jpetrinet.core.Arc {

	private PTArcAnnotation inscription;
	
	public Arc(String id, Node source, Node target, PTArcAnnotation inscription)
			throws NodesWithSameTypeException {
		
		super(id, source, target);
		this.inscription = inscription;	
	}
	
	public Arc(String id, Node source, Node target, ArcType type, PTArcAnnotation inscription)
			throws NodesWithSameTypeException {
		
		super(id, source, target, type);
		this.inscription = inscription;	
	}	
	
	public Arc(String id, Node source, Node target)
			throws NodesWithSameTypeException, Exception {
		
		super(id, source, target);
		this.inscription = new PTArcAnnotation(1);	
	}
	
	public Arc(String id, Node source, Node target, ArcType type)
			throws NodesWithSameTypeException, Exception {
		
		super(id, source, target, type);
		this.inscription = new PTArcAnnotation(1);	
	}	

	public PTArcAnnotation getInscription() {
		return inscription;
	}

	public void setInscription(PTArcAnnotation inscription) {
		this.inscription = inscription;
	}
	
}
